package main

import (
	"fmt"
	"math/rand"
)

//go:generate stringer -type ErrCode
type ErrCode int

const (
	成功 ErrCode = 0
	ERR_CODE_INVALID_PARAMS ErrCode = 1 // 无效参数
	ERR_CODE_TIMEOUT ErrCode = 2 // 超时
)

func main() {
	for _, i := range rand.Perm(10) {
		fmt.Println(i)
	}
}